try:
tval1 = weak_pws
except:
tval1 = "DNE"
try:
tval2 = strong_pws
except:
tval2 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == ["cat","dog","pig"] , "Great job!")
t1.add_failure(tval1== "DNE", "Did you add a List of Strings and name it weak_pws?")
t1.add_failure(tval1 == [1, 2, 3], "Oops! Did you add a List of Integers instead?")
t1.add_failure(tval1 != ["cat","dog","pig"], "Make sure you add a List of Strings and name it weak_pws!")
t2 = TestObjective()
t2.add_success( tval2 ==["cat","dog","pig"], "Great job!")
t2.add_failure(tval2 == "DNE", "Did you add a List of Strings and name it strong_pws?")
t2.add_failure(tval2 == [1,2,3], "Oops! Did you add a List of Integers instead?")
t2.add_failure(tval2 != ["cat","dog","pig"], "Make sure you add a List of Strings and name it strong_pws!")
tester = TestManager()
tester.add_test_list([t1, t2])
tester.run_tests()
tester.display_first_feedback()
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.